<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
      <head>
        <base href="<%=basePath%>">
        <title>Uploadify</title>
        <link rel="stylesheet" type="text/css" href="static/themes/uploadify/uploadify.css" />
        <script type="text/javascript" src="static/js/jquery/jquery-1.7.1.min.js"></script>
        <script type="text/javascript" src="static/js/uploadify/jquery.uploadify.min.js"></script>
        <script type="text/javascript">
        $(document).ready(function() {
            $("#uploadify").uploadify({
                swf : 'static/js/uploadify/uploadify.swf',
                uploader : 'servlet/upload',
                height : 30,
                width : 120,
                auto : false,
                buttonText : '选择文件'
            });
        });
        </script>
    </head>
    <body>
    	<%-- <jsp:forward page="posts"></jsp:forward> --%>
        <div id="fileQueue"></div>
        <input type="file" name="uploadify" id="uploadify" />
        <p>
        <a href="javascript:$('#uploadify').uploadify('upload','*')">开始上传</a>&nbsp;
        <a href="javascript:$('#uploadify').uploadifyClearQueue()">取消所有上传</a>
        </p>
    </body>
</html>